<?php
/**
 * My new Zend Framework project
 * 
 * @author  
 * @version 
 */
require_once 'core/utils/BaseUtil.php';
$libraries = BaseUtil::getLibraryPath();
$include_path = get_include_path();
foreach($libraries as $library){
    $include_path .= PATH_SEPARATOR . $library[0];
}
$include_path .= PATH_SEPARATOR . '../application';

set_include_path($include_path);
					
require_once 'Initializer.php';
require_once "Zend/Loader.php";
require_once '../conf/constent.php';
//project common module
require_once 'core/utils/HttpUtil.class.php';
require_once 'core/utils/ZendFormUtil.php';

date_default_timezone_set("Asia/Shanghai");

// Set up autoload.
Zend_Loader::registerAutoload(); 
 
// Prepare the front controller. 
$frontController = Zend_Controller_Front::getInstance(); 

// Change to 'production' parameter under production environemtn
$frontController->registerPlugin(new Initializer('../development'));

// Dispatch the request using the front controller. 
$frontController->dispatch();
?>

